//
//  NewsDetailModel_yy.m
//  Cunli
//
//  Created by ZhanyaaLi on 15/11/30.
//  Copyright © 2015年 lilubin. All rights reserved.
//

#import "NewsDetailModel_yy.h"

@implementation NewsDetailModel_yy

- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic
{
//    NSString *author = dic[@"author"];
//    NSString *copyFrom = dic[@"copyfrom"];
    if (_author.length != 0)
    {
        NSString *resultAuthor = [NSString stringWithFormat:@"作者:%@", _author];
        _author = resultAuthor;
        return YES;
    }
    else if(_copyfrom.length != 0)
    {
        NSString *fromAddress = [NSString stringWithFormat:@"文章来源:%@", _copyfrom];
//        _copyfrom = copyfrom;
        _author = fromAddress;
        return YES;
    }
    return YES;
}

@end
